package com.module.web;


import com.module.service.HomeLoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

/**
 * Created by libing on 2016/12/13.
 */
@Controller
@RequestMapping("/login")
public class HomeLoginController{

    @Autowired
    private HomeLoginService homeLoginService;


    @RequestMapping("/jumpTologinPage")
    public String jumpToLoginPage(Model model, Integer flag)throws Exception {
        //跳转到登录页面
        model.addAttribute("flag",flag);
        return "home/login";
    }


    @RequestMapping("/index")
    public String index(HttpServletRequest request, HttpSession session, Model model){
        return "home/login";
    }
}
